package com.digitalchina.lxnsy.activity.farmTrain;

import android.webkit.JavascriptInterface;

import com.digitalchina.lxnsy.base.BaseHtmlActivity;
import com.digitalchina.lxnsy.xml.UserXML;

/**
 * ================================================
 * 项目名称：android
 * 类描述：发布培训需求
 * 创建人：yzm
 * 创建时间：2020/1/8 17:26
 * 修改备注：
 * ================================================
 */
public class SendTrainNeedActivity extends BaseHtmlActivity {

    @Override
    protected void loadHtml() {
        webView.addJavascriptObject(new JsApi(), null);
        loadUrl("train-send-train-needs");
        setTitle("发布培训需求");

        callJsMethod("setTel",new String[]{UserXML.getMobilePhone(activity)});
    }

    @Override
    public void rightOnClick() {

    }

    public class JsApi {
        @JavascriptInterface
        public void saveClose(Object msg) {
            finish();
        }

    }
}
